package com.huixue.cn.ztej.bean;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.huixue.cn.ztej.utils.annotation.ColumnDefination;
import com.huixue.cn.ztej.utils.annotation.Comment;
import com.huixue.cn.ztej.utils.annotation.Table;

/**
 * Represents a request information from client
 * 
 * @author muzhanqiang
 */
@Table(name = "t_material", indexes = "index ${index_name} using hash (material_id)", constraints = "constraint primary key(material_id)")
@Comment("素材信息")
public class Material{

	@Comment("id")
	@ColumnDefination(column = "material_id", options = "not null", type = "varchar(40)", primary = true)
	private String materialId;

	@Comment("系统id")
	@ColumnDefination(column = "system_id", type = "varchar(40)")
	private String systemId;
	
	@Comment("素材类型, text:文本；news：图文；")
	@ColumnDefination(column = "material_type", type = "varchar(40)")
	private String materialType;

	@Comment("素材名称")
	@ColumnDefination(column = "material_name", options = "not null", type = "varchar(40)")
	private String materialName;

	@Comment("素材标题")
	@ColumnDefination(column = "material_title", type = "varchar(40)")
	private String materialTitle;

	@Comment("素材简介")
	@ColumnDefination(column = "material_detail", options = "not null", type = "varchar(40)")
	private String materialDetail;

	@Comment("素材地址")
	@ColumnDefination(column = "material_url", type = "varchar(600)")
	private String materialUrl;

	@Comment("缩略图地址")
	@ColumnDefination(column = "pic_url", type = "varchar(600)")
	private String picUrl;

	@Comment("素材大小")
	@ColumnDefination(column = "material_size", type = "varchar(50)")
	private String materialSize;

	@Comment("创建时间")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ColumnDefination(column = "create_time", type = "datetime")
	private Date createTime;

	public String getSystemId() {
		return systemId;
	}

	public void setSystemId(String systemId) {
		this.systemId = systemId;
	}

	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}

	public String getMaterialId() {
		return materialId;
	}

	public void setMaterialId(String materialId) {
		this.materialId = materialId;
	}

	public String getMaterialType() {
		return materialType;
	}

	public void setMaterialType(String materialType) {
		this.materialType = materialType;
	}

	public String getMaterialName() {
		return materialName;
	}

	public void setMaterialName(String materialName) {
		this.materialName = materialName;
	}

	public String getMaterialTitle() {
		return materialTitle;
	}

	public void setMaterialTitle(String materialTitle) {
		this.materialTitle = materialTitle;
	}

	public String getMaterialDetail() {
		return materialDetail;
	}

	public void setMaterialDetail(String materialDetail) {
		this.materialDetail = materialDetail;
	}

	public String getMaterialUrl() {
		return materialUrl;
	}

	public void setMaterialUrl(String materialUrl) {
		this.materialUrl = materialUrl;
	}

	public String getMaterialSize() {
		return materialSize;
	}

	public void setMaterialSize(String materialSize) {
		this.materialSize = materialSize;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
